home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: seebs@solutions.solon.com (Peter Seebach)
- Newsgroups: comp.lang.c
- Subject: Re: What the heck is ...?
- Date: 12 Feb 1996 06:51:56 -0600
- Organization: Usenet Fact Police (Undercover)
- Message-ID: <4fnd5c$9a2@solutions.solon.com>
- References: <sconi-1102961642580001@ip-24.newportnet.net> <4fmlro$nfg_001@pr.mcs.net>
- NNTP-Posting-Host: solutions.solon.com
-
- In article <4fmlro$nfg_001@pr.mcs.net>,
- Michael D. Perry <mdp@mika-sys.com> wrote:
- >In article <sconi-1102961642580001@ip-24.newportnet.net>,
- > sconi@superstore.com (Chris Tiee "Chochoni Boboni") wrote:
- >>Here's something all the books love to avoid: The use of ... in
- >function
- >>declarations. For example, one book says that the prototype of
- >printf() is
-
- >>int printf(const char *fmt_string, ...);
-
- ><< SNIP >>
-
- >What the ellipses mean is that it is a repeatable item. In the
- >case that you cite it takes the place of saying that all of the
- >following statements are valid:
-
- >int a = 2;
- >int b = 3;
- >printf("Test %d, is followed by test %d", a b);
- >Prints: Test 2 is followed by test 3
-
- ???
-
- >So logic follow that:
-
- >printf("%d, %d, %d, %d, %d, %d, %d", 1 2 3 4 5 6 7);
-
- >is the same as:
-
- >printf("%d, ..., %d", 1 ... 7);
-
- >and is simply much easier to type and accounts for any number of
- >variables.
-
- !@#*@#)?@#
-
- Why aren't these people doing my homework contest in comp.lang.c.moderated?
- This is possibly the most convincing answer I've ever seen *which has
- absolutely no basis in or relation to reality*. Made up entirely out of
- whole cloth, AFAICT.
-
- But it sure sounds nice.
-
- -s
- --
- Peter Seebach - seebs@solon.com - Copyright 1995 Peter Seebach.
- C/Unix wizard -- C/Unix questions? Send mail for help. No, really!
- FUCK the communications decency act. Goddamned government. [literally.]
- The *other* C FAQ - ftp taniemarie.solon.com /pub/c/afq - Not A Flying Toy
-